//
//  DGGCommonSDKUtils.h
//  DGGCommonSDK
//
//  Created by dgg_hzk on 2019/11/26.
//

#import <Foundation/Foundation.h>

@interface DGGCommonSDKUtils : NSObject

/// 返回当前的 ViewController
+ (UIViewController *_Nullable)currentViewController;

/**
 获取响应链中的下一个 UIViewController
 
 @param responder 响应链中的对象
 @return 下一个 ViewController
 */
+ (nullable UIViewController *)findNextViewControllerByResponder:(UIResponder *_Nullable)responder;

/**
 找到 view 所在的直接 ViewController
 
 @param view 需要寻找的 View
 @return SuperViewController
 */
+ (UIViewController *_Nullable)findSuperViewControllerByView:(UIView *_Nullable)view;

@end
